﻿using ActionSystem.Core.Utils;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ActionSystem.Core.ComboLogic
{
    public class HitMessage:IPoolItem
    {
        /// <summary>
        /// 被攻击者
        /// </summary>
        public BaseStateMachine other;
        /// <summary>
        /// 攻击类型
        /// </summary>
        public int attackType;
        /// <summary>
        /// 受击框类型
        /// </summary>
        public int hitType;
        /// <summary>
        /// 打击位置
        /// </summary>
        public Slot hitPosition;
        /// <summary>
        /// 攻击数据
        /// </summary>
        public object data;

        public bool IsDeleted { get; set; }

        public void PoolItemDelete()
        {
            GeneticPool<HitMessage>.Delete(this);
        }

        public void PoolItemReset()
        {
            other = null;
            attackType = 0;
            hitType = 0;
            hitPosition = null;
            data = null;
        }
        //武器类型
        //攻击类型
        //数据
    }
}

